# coding:UTF-8
# 定义师傅类
class Master(object):
    def __init__(self):
        self.tranfomer = '【七十二变心法绝学】'

    def make_kongfu(self):
        print(f'运用{self.tranfomer}习得这项技能')

# 找到另外一个师傅，习得长生不老之术
class Anmaster(object):
    def __init__(self):
        self.tranfomer = '【长生不老，秘密在自由基中】'

    def make_kongfu(self):
        print(f'运用{self.tranfomer}习得这项技能')

# 定义徒弟类
class Prentice(Master,Anmaster):
    def make_master(self):
        Master.__init__(self)
        Master.make_kongfu(self)

    def make_anmaster(self):
        Anmaster.__init__(self)
        Anmaster.make_kongfu(self)

if __name__ == '__main__':
    learn = Prentice()
    print(learn.tranfomer)
    learn.make_kongfu()
    # learn.make_anmaster()
    # learn.make_master()
"""
不理解为什么只有一个结果
不明白
不明白
不明白
"""

